package com.ostraffel.recallvocabularybackend.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ostraffel.recallvocabularybackend.DTO.UserConfig;
import com.ostraffel.recallvocabularybackend.DTO.UserConfigChangeRecallNumber;
import com.ostraffel.recallvocabularybackend.mapper.users.sqluserinterface.SqlUserInterface;

@Service
public class BusinessService {
    @Autowired
    SqlUserInterface sqlUserInterface;
    public UserConfig SearchUserConfig(String userId) {
        // UserConfigDetailed userConfigDetailed = new UserConfigDetailed();
        // to do
        return null;
    }

    public void UpdateUserConfig(UserConfigChangeRecallNumber userConfigChangeRecallNumber) {
        sqlUserInterface.updateNewWordNumberAndRecallWordNumber(userConfigChangeRecallNumber.getUserId(),
                userConfigChangeRecallNumber.getNewWordNumber(), userConfigChangeRecallNumber.getRecallWordNumber());
    }
}
